//
//  HOBaseMessageEntity.m
//  WeiDu_1_0
//
//  Created by foguo-mac-1 on 01/07/16.
//  Copyright (c) 2016 WeiDu Energy Tech. All rights reserved.
//

#import "HOBaseMessageEntity.h"

@implementation HOBaseMessageEntity
@synthesize Id;
@synthesize messageType;
@synthesize isUnread;
@synthesize unreadCount;
@synthesize avatarUrl;
@synthesize time;
@synthesize title;
@synthesize detailText;

- (void)cleanup
{
	self.avatarUrl = nil;
	self.title = nil;
	self.detailText = nil;
}

- (int)getOriType
{
    if(self.messageType >= 100)
        return (self.messageType - 100);
    else
        return self.messageType;
}

- (BOOL)isNewMessage
{
    return self.messageType >= 100;
}
@end
